package ooday04;

public class Dog extends Animal implements Swim{
    Dog(String name,int age,String colour){
        super(name,age,colour);

    }

    void lookHome(){
        System.out.println(age+"岁的"+colour+"色小狗"+name+"在看家……");
    }

    void eat(){
        System.out.println(age+"岁的"+colour+"色小狗"+name+"在啃骨头……");
    };
    public void swim(){
        System.out.println(colour+"色的"+age+"岁的狗狗"+name+"正在游泳……");
    }
}
